﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DynamicAuditor
{
    public partial class MantVersionCobit : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack) {

                DynamicAuditor.WsCobit.WsCobit versiones = new DynamicAuditor.WsCobit.WsCobit();
                Grid1.DataSource = versiones.getTodosVersionCobit();
                Grid1.DataBind();
               

            }


        }

        protected void add(object sender, EventArgs e)
        {
            LinkButton l = (LinkButton)sender;

            Session["_idversioncobit"] = l.CommandArgument;
            Response.Redirect("MantDominiosCobit.aspx");

        }



        protected void Modificar(object sender, EventArgs e)
        {
            LinkButton l = (LinkButton)sender;
            Session["modificar"] = true.ToString();
            Session["_idversioncobit"] = l.CommandArgument;
            Response.Redirect("ModVersion.aspx");

        }

        protected void Eliminar(object sender, EventArgs e)
        {
            LinkButton l = (LinkButton)sender;
            Session["eliminar"] = true.ToString();
            Session["_idversioncobit"] = l.CommandArgument;
            Response.Redirect("EliVersion.aspx");

        }






    }
}
